<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>签到积分设置</title>
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/dpl.css" rel="stylesheet">
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/bui.css" rel="stylesheet">
<script src="https://g.alicdn.com/??kissy/k/1.4.2/seed-min.js"></script>
<script src="http://g.alicdn.com/bui/bui/1.1.21/adapter.js"></script>
<link href="http://g.tbcdn.cn/kissy/k/1.3.2/??calendar/assets/shopmanage/dpl-min.css" rel="stylesheet">
<script src="/assets/shopmanage/main.js"></script> 
<script src="/assets/shopmanage/gamecfg_1.js"></script>
<script src="/assets/shopmanage/global_menu_kissy.js"></script>
</head>
<body style="width:990px;margin:0 auto;padding:10px 0;">

 <div class="doc-content">
    <div class="panel">
      <div class="panel-body">
	  <div class="row">
		<div class="span24 doc-content">
		<h3 class="pull-left">我的互动 >> 订单兑换奖品</h3>
		<div class="button-group pull-right">
			{include file='../../../PublicView/global_menu.html'}
		</div>
		<!-- <span class="label label-info  pull-right"><i class="icon-white icon-home"></i></span> -->
		</div>
	  </div>
	  <hr />
	  <div class="button-group">
			<a href="/?c=jifen&m=Shopmanage" class="button {if $current=='jifen'}button-info{/if}"><i class=" icon-wrench {if $current=='jifen'}icon-white{/if}"></i>积分设置</a>
			<a href="/?c=jifen&a=qiandao&m=Shopmanage" class="button {if $current=='qiandao'}button-info{/if}"><i class="icon-user {if $current=='qiandao'}icon-white{/if}"></i>签到用户</a>
			<a href="/?c=jifen&a=user&m=Shopmanage" class="button {if $current=='jifenuser'}button-info{/if}"><i class="icon-gift {if $current=='jifenuser'}icon-white{/if}"></i>兑换列表</a>
			<a href="/?c=jifen&a=jforders&m=Shopmanage" class="button {if $current=='jforders'}button-info{/if}"><i class="icon-refresh {if $current=='jforders'}icon-white{/if}"></i>订单列表</a>
	  </div>
	  <hr />
	  <div class="tips tips-small tips-info">
        <span class="x-icon x-icon-small x-icon-info"><i class="icon icon-white icon-info"></i></span>
        <div class="tips-content">注意！签到和积分兑换功能不受时间限制</div>
      </div>
	  <br />
	  <div class="row">
			  <div class="row" style="margin-bottom:5px">
					 <form class="pull-right" method="post" action="/?c=jifen&a=user&m=Shopmanage">
						<input type="text" name="usernick" value="{$search|default:""}" class="control-text search-query">
						<button type="submit" class="button ">搜索</button>
					 </form>
			  </div>
			  <div class="panelcontent">
		<table cellspacing="0" class="table table-bordered" style="border-top:none">
          <tbody>
            <tr>
              <th width="15"></th>
              <th>名称</th>
              <th width="60">等级</th>
			  {if $admin!="wins" && $admin !="jifen"}
              <th width="30">概率</th>
			  {/if}
              <th width="30">数量</th>
              <th width="30">价值</th>
              <th width="60">类型</th>
			  {if $admin=="wins" || $admin=="jifen"}
			  <th width="50">中奖人</th>
			  <th width="50">时间</th>
			  <th width="52">状态</th>
			  <th width="52">来源</th>
			  {/if}
            </tr>
		  {foreach key=key item=item from=$data}
            <tr class="re{$ctp}{$item.id}">
              <td>{if $current == 'shopgift'}<input type="checkbox" data-gid="{$item.id}" class="js-select">{/if}</td>
			  <td>
			  <a href="{$item.num_iids}"  target="_blank" title="{$item.toolname}{$item.giftid}" >{$item.name}</a> 
			  <i class="pull-right">
			  {if $admin!="wins" && $admin !="jifen"}
			  <button class="button button-mini edit fa{$item.id}" data-gid="{$item.id}" data-gtp="{$ctp}" data-unick="{$item.usernick|default:""}">
			  <i class="icon icon-pencil"></i>修改
			  </button>
			  <span class=" curpoint x-icon x-icon-small x-icon-error js-delete" style="cursor:pointer" data-gid="{$item.id}">×</span>
			  {else}
				{if $item.status==0}<button class="button button-mini js-fajiang fa{$item.id}" data-gid="{$item.id}" data-gtp="{$ctp}" data-unick="{$item.usernick|default:""}">
				<i class="icon icon-pencil"></i>发奖
				</button>
				{/if}
				{if $item.type=="实物" && $item.status==1}
					已发奖
				{/if}
			  {/if}
			  </i>
			  </td>
              <td>{$item.level}</td>
			  {if $admin!="wins" && $admin !="jifen"}
              <td>{$item.probability}</td>
			  {/if}
			  {if $admin!="wins" && $admin !="jifen"}
			  <td>{$item.quantity}</td>
			  {else}
			  <td>{$item.ugq}份</td>
			  {/if}
			  <td>{$item.price}元</td>
			  <td>
				{$item.type}
			  </td>
			   {if $admin=="wins" || $admin =="jifen"}
			  <td>{if !$item.usernick}{$item.mixednick|default:"错误！"|truncate:8:"..."}{else}{$item.usernick|default:""}{/if}</td>
			  <td>{$item.actiontime}</td>
              <td class="status{$item.gid}">
				  {if $item.status==0}<span class="label label-info">未发奖</span>{/if}
			      {if $item.status==1}
					{if $item.type=="实物"}
					<button class="button button-mini button-success js-checkwl" data-gid="{$key}">查看</button>
					{else}
					<span class="label label-success">已发奖</span>
					{/if}
				  {/if}
			      {if $item.status==2}<span class="label">已领取</span>{/if}
			      {if $item.status==3}<span class="label label-warning">催发奖</span>{/if}
				  {if $item.status==9}<span class="label label-inverse"><del>拒绝发奖</del></span>{/if}
				  {if $item.status==11}<span class="label label-info">尚未开始</span>{/if}
				  {if $item.status==12}<span class="label label-success">正在进行</span>{/if}
				  {if $item.status==13}<span class="label label-inverse">已经结束</span>{/if}
			  </td>
			  <td>{$item.getway}</td>
			  {/if}
            </tr>
		{/foreach}
          </tbody>
        </table>
		<div>
		  <div class="pagination pull-right" data-totalpg="{$totalpg}" data-curpg="{$curpg}" data-action="{$current}">
			{$page}
          </div>
        </div>
			  </div>
			</div>			
			<input type="hidden" class="type" value="{$type|default:0}" />
    </div>
  </div>
</body>
</html>